﻿@using TNPTN.Lang
@using TNPTN.Constant
@using TNPTN.Session
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width" />
    <meta property="fb:admins" content="100006171605378"/>
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" type="text/css" href="/Content/Site.css" media="all" />
    <!--[if IE]>
        <link rel="stylesheet" type="text/css" href="/Content/SiteIE.css" media="all" />
    <![endif]-->
    @if (TNPTN.Session.Info.LangID == TNPTN.Models.Enums.LanguageID.Cam)
    {
        <link rel="stylesheet" type="text/css" href="/Content/SiteCam.css" media="all" />
    }
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <script src="/Content/modernizr"></script>
    <script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.10.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#lang a").click(function () {
                var langID = $(this).attr("lang");
                var returnURL = "/";
                $("#langID").val(langID);
                $("#fLang").submit();
            });
        });
    </script>
</head>
<body>
    <div id="outer-wrapper">
        <div id="content-wrapper">
            <header class="main">
                <div id="logo"><a href="/">Tangin Pan Tangin</a></div>
                 <div id="lang">
                    <a href="#" id="langCam" lang="0">Xap Cam</a>
                    &nbsp;|
                    <a href="#" id="langViet" lang="1">Tiếng Việt</a>
                    &nbsp;|
                    <a href="#" id="langEng" lang="2">English</a>
                </div>
                @*<div class="user-display">
                    <span class="welcome"><a href="http://nuget.org/users/account/LogOn?returnUrl=%2F">Log On</a></span>
                    <a href="http://nuget.org/account/Register" class="register">Register</a>
                </div>*@

            </header>
            <nav class="main">
                     <ul id="menu">
                        <li class="current normal"><a href="/">@Lang.ResourceManager.GetString(TNPTN.Constant.Language.PAG_HOME, Info.CurrentCulture)</a></li>
                        <li class="normal"><a href="/Home/Building">@Lang.ResourceManager.GetString(TNPTN.Constant.Language.PAG_PRODUCTS, Info.CurrentCulture)</a></li>
                        <li class="normal"><a href="/Home/Building" class="upload">@Lang.ResourceManager.GetString(TNPTN.Constant.Language.PAG_DOWNLOAD, Info.CurrentCulture)</a></li>
                        <li class="normal"><a href="/Home/Building">@Lang.ResourceManager.GetString(TNPTN.Constant.Language.PAG_ABOUT_US, Info.CurrentCulture)</a></li>
                        <li class="normal"><a href="/Home/Building">@Lang.ResourceManager.GetString(TNPTN.Constant.Language.PAG_CONTACT_US, Info.CurrentCulture)</a></li>
                        <li><a href="https://www.facebook.com/pages/Kawom-Tangin-Pan-Tangin/146353062222071">@Lang.ResourceManager.GetString(TNPTN.Constant.Language.PAG_FACEBOOK, Info.CurrentCulture)</a></li>
                    </ul>
                </nav>
            <div id="body" role="main">
                 @RenderBody()
            </div>
        </div>
        <div id="layout-footer" class="group">
            <footer id="footer">
                    <ul class="recommended">
                        <li>
                            <a href="#">Contact Us</a>
                            <p>Got questions about "Xalih Akhar Cam Software"?</p>
                        </li>
                        <li>
                            <a href="#">Overview</a>
                            <p>How to use...</p>
                        </li>
                        <li>
                            <a href="#">Install</a>
                            <p>How to install and update new version?</p>
                        </li>
                        <li>
                            <a href="#">Videos</a>
                            <p>Watch screencasts and presentations about anything and everything Tangin Pan Tangin.</p>
                        </li>
                        <li>
                            <a href="#">FAQ</a>
                            <p>Read the Frequently Asked Questions about Tangin Pan Tangin and see if your question made the list.</p>
                        </li>
                    </ul>
                    <div class="license">
                        <p>
                            © 2013 Tangin Pan Tangin
                        </p>                        
                    </div>
                </footer>
        </div>
    </div>
    <div style="display:none">
         @using (Html.BeginForm("ChangeLang", "Base", FormMethod.Post, new { id = "fLang" }))
         {
            @Html.Hidden("returnURL", Request.Url.AbsoluteUri)
            @Html.Hidden("langID", 0)
         }
    </div>
</body>
</html>
